package cn.ren.cloud.feign;

import cn.ren.cloud.doc.EsCourseDoc;
import cn.ren.cloud.fallback.EsCourseFeignClientFallbackFactory;
import cn.ren.cloud.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 23508
 */
@FeignClient(value = "service-es", fallbackFactory = EsCourseFeignClientFallbackFactory.class)
public interface EsCourseFeignClient {

    /**
     * feign接口调用
     *
     * @param courseEs
     * @return
     */
    @PostMapping("/courseEs/saveCourseEs")
    JsonResult saveCourseEs(@RequestBody EsCourseDoc courseEs);
}
